package cn.com.nes.mybatis.agent.ope.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * DTU无线设备表
 * </p>
 *
 * @author nes
 * @since 2023-03-22
 */
@TableName("is_wxsb")
public class IsWxsb extends Model<IsWxsb> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 无线ID
     */
    @TableField("wx_id")
    private String wxId;
    /**
     * 无线设备型号
     */
    @TableField("wx_xh")
    private String wxXh;
    /**
     * 无线卡号
     */
    @TableField("wx_kh")
    private String wxKh;
    /**
     * 无线卡号来源
     */
    @TableField("wx_khly")
    private String wxKhly;
    /**
     * 无线设备厂家
     */
    @TableField("wx_sbcj")
    private String wxSbcj;
    /**
     * 无线设备密钥
     */
    @TableField("wx_sbmy")
    private String wxSbmy;
    /**
     * dtu_manage_id
     */
    @TableField("dtu_manage_id")
    private Long dtuManageId;
    /**
     * 设备型号id
     */
    @TableField("device_type_id")
    private String deviceTypeId;
    /**
     * 设备协议id
     */
    @TableField("protocol_id")
    private String protocolId;
    /**
     * 设备厂商id
     */
    @TableField("manufacture_id")
    private String manufactureId;
    /**
     * DTU类型id
     */
    @TableField("dtu_type_id")
    private Long dtuTypeId;
    /**
     * 是否为测试  0:生产； 1：测试
     */
    @TableField("is_test")
    private Integer isTest;
    /**
     * 逻辑删除  1 表示删除，0 表示未删除
     */
    private Integer sfsc;
    /**
     * 创建人
     */
    @TableField("cr_oper")
    private String crOper;
    /**
     * 创建时间
     */
    private Date cjsj;
    /**
     * 修改人
     */
    @TableField("up_oper")
    private String upOper;
    /**
     * 修改时间
     */
    private Date xgsj;
    /**
     * 数据版本号
     */
    private Long version;
    /**
     * 数据来源
     */
    private String sjly;
    /**
     * 是否掉线通知  0:不通知； 1：通知  默认0不通知
     */
    @TableField("is_offline_notice")
    private Integer isOfflineNotice;
    /**
     * 数据同步时间
     */
    private Date v1;
    /**
     * 网关地址
     */
    private String gateway;
    /**
     * 节点地址
     */
    private String nodeid;
    private String serverip;
    private Integer serverport;
    /**
     * 多久没有采集数据算作掉线 最小30分钟
     */
    @TableField("offline_interval_time")
    private String offlineIntervalTime;
    /**
     * 代理商id
     */
    @TableField("agent_id")
    private String agentId;

    @TableField("agent_company_id")
    private String agentCompanyId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getWxId() {
        return wxId;
    }

    public void setWxId(String wxId) {
        this.wxId = wxId;
    }

    public String getWxXh() {
        return wxXh;
    }

    public void setWxXh(String wxXh) {
        this.wxXh = wxXh;
    }

    public String getWxKh() {
        return wxKh;
    }

    public void setWxKh(String wxKh) {
        this.wxKh = wxKh;
    }

    public String getWxKhly() {
        return wxKhly;
    }

    public void setWxKhly(String wxKhly) {
        this.wxKhly = wxKhly;
    }

    public String getWxSbcj() {
        return wxSbcj;
    }

    public void setWxSbcj(String wxSbcj) {
        this.wxSbcj = wxSbcj;
    }

    public String getWxSbmy() {
        return wxSbmy;
    }

    public void setWxSbmy(String wxSbmy) {
        this.wxSbmy = wxSbmy;
    }

    public Long getDtuManageId() {
        return dtuManageId;
    }

    public void setDtuManageId(Long dtuManageId) {
        this.dtuManageId = dtuManageId;
    }

    public String getDeviceTypeId() {
        return deviceTypeId;
    }

    public void setDeviceTypeId(String deviceTypeId) {
        this.deviceTypeId = deviceTypeId;
    }

    public String getProtocolId() {
        return protocolId;
    }

    public void setProtocolId(String protocolId) {
        this.protocolId = protocolId;
    }

    public String getManufactureId() {
        return manufactureId;
    }

    public void setManufactureId(String manufactureId) {
        this.manufactureId = manufactureId;
    }

    public Long getDtuTypeId() {
        return dtuTypeId;
    }

    public void setDtuTypeId(Long dtuTypeId) {
        this.dtuTypeId = dtuTypeId;
    }

    public Integer getIsTest() {
        return isTest;
    }

    public void setIsTest(Integer isTest) {
        this.isTest = isTest;
    }

    public Integer getSfsc() {
        return sfsc;
    }

    public void setSfsc(Integer sfsc) {
        this.sfsc = sfsc;
    }

    public String getCrOper() {
        return crOper;
    }

    public void setCrOper(String crOper) {
        this.crOper = crOper;
    }

    public Date getCjsj() {
        return cjsj;
    }

    public void setCjsj(Date cjsj) {
        this.cjsj = cjsj;
    }

    public String getUpOper() {
        return upOper;
    }

    public void setUpOper(String upOper) {
        this.upOper = upOper;
    }

    public Date getXgsj() {
        return xgsj;
    }

    public void setXgsj(Date xgsj) {
        this.xgsj = xgsj;
    }

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

    public String getSjly() {
        return sjly;
    }

    public void setSjly(String sjly) {
        this.sjly = sjly;
    }

    public Integer getIsOfflineNotice() {
        return isOfflineNotice;
    }

    public void setIsOfflineNotice(Integer isOfflineNotice) {
        this.isOfflineNotice = isOfflineNotice;
    }

    public Date getV1() {
        return v1;
    }

    public void setV1(Date v1) {
        this.v1 = v1;
    }

    public String getGateway() {
        return gateway;
    }

    public void setGateway(String gateway) {
        this.gateway = gateway;
    }

    public String getNodeid() {
        return nodeid;
    }

    public void setNodeid(String nodeid) {
        this.nodeid = nodeid;
    }

    public String getServerip() {
        return serverip;
    }

    public void setServerip(String serverip) {
        this.serverip = serverip;
    }

    public Integer getServerport() {
        return serverport;
    }

    public void setServerport(Integer serverport) {
        this.serverport = serverport;
    }

    public String getOfflineIntervalTime() {
        return offlineIntervalTime;
    }

    public void setOfflineIntervalTime(String offlineIntervalTime) {
        this.offlineIntervalTime = offlineIntervalTime;
    }

    public String getAgentId() {
        return agentId;
    }

    public void setAgentId(String agentId) {
        this.agentId = agentId;
    }

    public static final String ID = "id";

    public static final String WX_ID = "wx_id";

    public static final String WX_XH = "wx_xh";

    public static final String WX_KH = "wx_kh";

    public static final String WX_KHLY = "wx_khly";

    public static final String WX_SBCJ = "wx_sbcj";

    public static final String WX_SBMY = "wx_sbmy";

    public static final String DTU_MANAGE_ID = "dtu_manage_id";

    public static final String DEVICE_TYPE_ID = "device_type_id";

    public static final String PROTOCOL_ID = "protocol_id";

    public static final String MANUFACTURE_ID = "manufacture_id";

    public static final String DTU_TYPE_ID = "dtu_type_id";

    public static final String IS_TEST = "is_test";

    public static final String SFSC = "sfsc";

    public static final String CR_OPER = "cr_oper";

    public static final String CJSJ = "cjsj";

    public static final String UP_OPER = "up_oper";

    public static final String XGSJ = "xgsj";

    public static final String VERSION = "version";

    public static final String SJLY = "sjly";

    public static final String IS_OFFLINE_NOTICE = "is_offline_notice";

    public static final String V1 = "v1";

    public static final String GATEWAY = "gateway";

    public static final String NODEID = "nodeid";

    public static final String SERVERIP = "serverip";

    public static final String SERVERPORT = "serverport";

    public static final String OFFLINE_INTERVAL_TIME = "offline_interval_time";

    public static final String AGENT_ID = "agent_id";

    @Override
    public Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "IsWxsb{" +
        ", id=" + id +
        ", wxId=" + wxId +
        ", wxXh=" + wxXh +
        ", wxKh=" + wxKh +
        ", wxKhly=" + wxKhly +
        ", wxSbcj=" + wxSbcj +
        ", wxSbmy=" + wxSbmy +
        ", dtuManageId=" + dtuManageId +
        ", deviceTypeId=" + deviceTypeId +
        ", protocolId=" + protocolId +
        ", manufactureId=" + manufactureId +
        ", dtuTypeId=" + dtuTypeId +
        ", isTest=" + isTest +
        ", sfsc=" + sfsc +
        ", crOper=" + crOper +
        ", cjsj=" + cjsj +
        ", upOper=" + upOper +
        ", xgsj=" + xgsj +
        ", version=" + version +
        ", sjly=" + sjly +
        ", isOfflineNotice=" + isOfflineNotice +
        ", v1=" + v1 +
        ", gateway=" + gateway +
        ", nodeid=" + nodeid +
        ", serverip=" + serverip +
        ", serverport=" + serverport +
        ", offlineIntervalTime=" + offlineIntervalTime +
        ", agentId=" + agentId +
        "}";
    }

    public String getAgentCompanyId() {
        return agentCompanyId;
    }

    public void setAgentCompanyId(String agentCompanyId) {
        this.agentCompanyId = agentCompanyId;
    }
}
